package com.travel.photos.ui.find.searchtravel;

import com.travel.photos.bean.FindSearchTeavelBean;
import com.travel.photos.http.HttpHelper;

import java.util.Map;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2016/10/17.
 */
public class PhotoSearchTravelModel implements PhotoSearchTravelContract.Model {
    //数据加载
    @Override
    public void getDetail( Map<String, String> map,
                          Subscriber<FindSearchTeavelBean> subscriber) {
        HttpHelper.getInstance().getFindSearchTeavelData(map)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);

    }
}
